extends "../../azurlane_ctrl/AzurItem.gd"
func init():
	.init()
	name = "[普通]玉米灯笼"
	att.maxHpL = 0.25
	info = "每秒损失3%血量(召唤物佩戴时15%)，并对目标造成[损血量100%]的技能伤害(召唤物造成的伤害减半)\n[color=#DC143C]同时装备三件时可升级[/color]"
	
func _upS():
	if masCha != null and utils.inBattle(masCha) and not masCha.isDeath:
		var num = min(10000, masCha.att.maxHp)*0.03
		if masCha.isSumm:
			num = min(10000, masCha.att.maxHp)*0.15
		masCha.forceHurtSelf(num)
		if masCha.isSumm:
			masCha.azurHurtChara(masCha.aiCha, num*0.5, sys.HurtType.WEAPON, sys.AtkType.SKILL, "玉米灯笼")
		else:
			masCha.azurHurtChara(masCha.aiCha, num, sys.HurtType.WEAPON, sys.AtkType.SKILL, "玉米灯笼")
		
func upgrade():
	name = "[color=#FFFF00][史诗]玉米灯笼"
	info = "每秒损失3%血量(召唤物佩戴时15%)，并对目标造成[损血量100%]的技能伤害(召唤物造成的伤害减半)"
	att.maxHpL = 0.5